package com.wym.exampleproject.distributedredislock.controller;

import com.wym.exampleproject.distributedredislock.service.ILockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    private ILockService lockService;

    @GetMapping("/one")
    public void one(){
        lockService.one();
    }

    @GetMapping("/two")
    public void two(){
        lockService.two();
    }
}
